Integrand size = 18, antiderivative size = 122 \[ \int \frac {x^3}{a+b \tan \left (c+d x^2\right )} \, dx=\frac {x^4}{4 (a+i b)}+\frac {b x^2 \log \left (1+\frac {\left (a^2+b^2\right ) e^{2 i \left (c+d x^2\right )}}{(a+i b)^2}\right )}{2 \left (a^2+b^2\right ) d}-\frac {i b \operatorname {PolyLog}\left (2,-\frac {\left (a^2+b^2\right ) e^{2 i \left (c+d x^2\right )}}{(a+i b)^2}\right )}{4 \left (a^2+b^2\right ) d^2} \]
[Out]
Time = 0.26 (sec) , antiderivative size = 122, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.278, Rules used = {3832, 3813, 2221, 2317, 2438} \[ \int \frac {x^3}{a+b \tan \left (c+d x^2\right )} \, dx=-\frac {i b \operatorname {PolyLog}\left (2,-\frac {\left (a^2+b^2\right ) e^{2 i \left (d x^2+c\right )}}{(a+i b)^2}\right )}{4 d^2 \left (a^2+b^2\right )}+\frac {b x^2 \log \left (1+\frac {\left (a^2+b^2\right ) e^{2 i \left (c+d x^2\right )}}{(a+i b)^2}\right )}{2 d \left (a^2+b^2\right )}+\frac {x^4}{4 (a+i b)} \]
[In]
[Out]
Rule 2221
Rule 2317
Rule 2438
Rule 3813
Rule 3832
Rubi steps \begin{align*} \text {integral}& = \frac {1}{2} \text {Subst}\left (\int \frac {x}{a+b \tan (c+d x)} \, dx,x,x^2\right ) \\ & = \frac {x^4}{4 (a+i b)}+(i b) \text {Subst}\left (\int \frac {e^{2 i (c+d x)} x}{(a+i b)^2+\left (a^2+b^2\right ) e^{2 i (c+d x)}} \, dx,x,x^2\right ) \\ & = \frac {x^4}{4 (a+i b)}+\frac {b x^2 \log \left (1+\frac {\left (a^2+b^2\right ) e^{2 i \left (c+d x^2\right )}}{(a+i b)^2}\right )}{2 \left (a^2+b^2\right ) d}-\frac {b \text {Subst}\left (\int \log \left (1+\frac {\left (a^2+b^2\right ) e^{2 i (c+d x)}}{(a+i b)^2}\right ) \, dx,x,x^2\right )}{2 \left (a^2+b^2\right ) d} \\ & = \frac {x^4}{4 (a+i b)}+\frac {b x^2 \log \left (1+\frac {\left (a^2+b^2\right ) e^{2 i \left (c+d x^2\right )}}{(a+i b)^2}\right )}{2 \left (a^2+b^2\right ) d}+\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1+\frac {\left (a^2+b^2\right ) x}{(a+i b)^2}\right )}{x} \, dx,x,e^{2 i \left (c+d x^2\right )}\right )}{4 \left (a^2+b^2\right ) d^2} \\ & = \frac {x^4}{4 (a+i b)}+\frac {b x^2 \log \left (1+\frac {\left (a^2+b^2\right ) e^{2 i \left (c+d x^2\right )}}{(a+i b)^2}\right )}{2 \left (a^2+b^2\right ) d}-\frac {i b \operatorname {PolyLog}\left (2,-\frac {\left (a^2+b^2\right ) e^{2 i \left (c+d x^2\right )}}{(a+i b)^2}\right )}{4 \left (a^2+b^2\right ) d^2} \\ \end{align*}
Time = 1.23 (sec) , antiderivative size = 110, normalized size of antiderivative = 0.90 \[ \int \frac {x^3}{a+b \tan \left (c+d x^2\right )} \, dx=\frac {d x^2 \left ((a+i b) d x^2+2 b \log \left (1+\frac {(a+i b) e^{-2 i \left (c+d x^2\right )}}{a-i b}\right )\right )+i b \operatorname {PolyLog}\left (2,\frac {(-a-i b) e^{-2 i \left (c+d x^2\right )}}{a-i b}\right )}{4 \left (a^2+b^2\right ) d^2} \]
[In]
[Out]
\[\int \frac {x^{3}}{a +b \tan \left (d \,x^{2}+c \right )}d x\]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 536 vs. \(2 (103) = 206\).
Time = 0.26 (sec) , antiderivative size = 536, normalized size of antiderivative = 4.39 \[ \int \frac {x^3}{a+b \tan \left (c+d x^2\right )} \, dx=\frac {2 \, a d^{2} x^{4} - 2 \, b c \log \left (\frac {{\left (i \, a b + b^{2}\right )} \tan \left (d x^{2} + c\right )^{2} - a^{2} + i \, a b + {\left (i \, a^{2} + i \, b^{2}\right )} \tan \left (d x^{2} + c\right )}{\tan \left (d x^{2} + c\right )^{2} + 1}\right ) - 2 \, b c \log \left (\frac {{\left (i \, a b - b^{2}\right )} \tan \left (d x^{2} + c\right )^{2} + a^{2} + i \, a b + {\left (i \, a^{2} + i \, b^{2}\right )} \tan \left (d x^{2} + c\right )}{\tan \left (d x^{2} + c\right )^{2} + 1}\right ) + i \, b {\rm Li}_2\left (\frac {2 \, {\left ({\left (i \, a b - b^{2}\right )} \tan \left (d x^{2} + c\right )^{2} - a^{2} - i \, a b + {\left (i \, a^{2} - 2 \, a b - i \, b^{2}\right )} \tan \left (d x^{2} + c\right )\right )}}{{\left (a^{2} + b^{2}\right )} \tan \left (d x^{2} + c\right )^{2} + a^{2} + b^{2}} + 1\right ) - i \, b {\rm Li}_2\left (\frac {2 \, {\left ({\left (-i \, a b - b^{2}\right )} \tan \left (d x^{2} + c\right )^{2} - a^{2} + i \, a b + {\left (-i \, a^{2} - 2 \, a b + i \, b^{2}\right )} \tan \left (d x^{2} + c\right )\right )}}{{\left (a^{2} + b^{2}\right )} \tan \left (d x^{2} + c\right )^{2} + a^{2} + b^{2}} + 1\right ) + 2 \, {\left (b d x^{2} + b c\right )} \log \left (-\frac {2 \, {\left ({\left (i \, a b - b^{2}\right )} \tan \left (d x^{2} + c\right )^{2} - a^{2} - i \, a b + {\left (i \, a^{2} - 2 \, a b - i \, b^{2}\right )} \tan \left (d x^{2} + c\right )\right )}}{{\left (a^{2} + b^{2}\right )} \tan \left (d x^{2} + c\right )^{2} + a^{2} + b^{2}}\right ) + 2 \, {\left (b d x^{2} + b c\right )} \log \left (-\frac {2 \, {\left ({\left (-i \, a b - b^{2}\right )} \tan \left (d x^{2} + c\right )^{2} - a^{2} + i \, a b + {\left (-i \, a^{2} - 2 \, a b + i \, b^{2}\right )} \tan \left (d x^{2} + c\right )\right )}}{{\left (a^{2} + b^{2}\right )} \tan \left (d x^{2} + c\right )^{2} + a^{2} + b^{2}}\right )}{8 \, {\left (a^{2} + b^{2}\right )} d^{2}} \]
[In]
[Out]
\[ \int \frac {x^3}{a+b \tan \left (c+d x^2\right )} \, dx=\int \frac {x^{3}}{a + b \tan {\left (c + d x^{2} \right )}}\, dx \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 267 vs. \(2 (103) = 206\).
Time = 0.29 (sec) , antiderivative size = 267, normalized size of antiderivative = 2.19 \[ \int \frac {x^3}{a+b \tan \left (c+d x^2\right )} \, dx=\frac {{\left (a - i \, b\right )} d^{2} x^{4} - 2 i \, b d x^{2} \arctan \left (\frac {2 \, a b \cos \left (2 \, d x^{2} + 2 \, c\right ) - {\left (a^{2} - b^{2}\right )} \sin \left (2 \, d x^{2} + 2 \, c\right )}{a^{2} + b^{2}}, \frac {2 \, a b \sin \left (2 \, d x^{2} + 2 \, c\right ) + a^{2} + b^{2} + {\left (a^{2} - b^{2}\right )} \cos \left (2 \, d x^{2} + 2 \, c\right )}{a^{2} + b^{2}}\right ) + b d x^{2} \log \left (\frac {{\left (a^{2} + b^{2}\right )} \cos \left (2 \, d x^{2} + 2 \, c\right )^{2} + 4 \, a b \sin \left (2 \, d x^{2} + 2 \, c\right ) + {\left (a^{2} + b^{2}\right )} \sin \left (2 \, d x^{2} + 2 \, c\right )^{2} + a^{2} + b^{2} + 2 \, {\left (a^{2} - b^{2}\right )} \cos \left (2 \, d x^{2} + 2 \, c\right )}{a^{2} + b^{2}}\right ) - i \, b {\rm Li}_2\left (\frac {{\left (i \, a + b\right )} e^{\left (2 i \, d x^{2} + 2 i \, c\right )}}{-i \, a + b}\right )}{4 \, {\left (a^{2} + b^{2}\right )} d^{2}} \]
[In]
[Out]
\[ \int \frac {x^3}{a+b \tan \left (c+d x^2\right )} \, dx=\int { \frac {x^{3}}{b \tan \left (d x^{2} + c\right ) + a} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {x^3}{a+b \tan \left (c+d x^2\right )} \, dx=\int \frac {x^3}{a+b\,\mathrm {tan}\left (d\,x^2+c\right )} \,d x \]
[In]
[Out]